package com._51cto.healthy.service;

import com._51cto.healthy.mapper.ImageMapper;
import com._51cto.healthy.pojo.Image;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class ImageServiceImpl implements ImageService {
    @Autowired
    private ImageMapper imageMapper;

    @Override
    public void insertImg(Image image) {
       imageMapper.insertImg(image);
    }

    @Override
    public void updateById(Image image) {
         imageMapper.updateById(image);
    }
    @Override
    public void deleteById(Integer id) {
        imageMapper.deleteById(id);

    }
    @Override
    public List<Image> queryAll() {
        return imageMapper.queryAll();
    }
}
